package pl.edu.agh.experts.diseases;

import org.drools.KnowledgeBase;

import pl.edu.agh.experts.diseases.commons.MetaKnowledge;
import pl.edu.agh.experts.diseases.commons.Symptom;

public class ConsoleUI {

	public static void setMetaQuestion(MetaKnowledge metaKnowledge, KnowledgeBase kbaseResults,
			QuestionProvider questionProvider) {
		Printer.printMetaQuestion(metaKnowledge);
		UserResponse response = ResponseRetriever.getResponseFromUser(kbaseResults, true, true,
				false);
		questionProvider.respondToMetaQuestion(metaKnowledge, response);
	}

	public static void setQuestion(Symptom symptom, KnowledgeBase kbaseResults,
			QuestionProvider questionProvider) {
		Printer.printSymptomQuestion(symptom);
		UserResponse response = ResponseRetriever.getResponseFromUser(kbaseResults, true, true,
				true);
		questionProvider.respondToQuestion(new Question(symptom, response), symptom);

	}

}
